package com.dabai.iot.core.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 自定义消息发送输入类
 *
 * @author kev1n
 */
@Data
public class CustomMessageInput implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @NotNull
    private Long deviceId;

    @NotBlank
    String topic;

    @NotBlank
    String message;

}
